import { Body, Controller, Get,Post } from '@nestjs/common';
import {UserService} from './user.service'
import { UserInterface } from './UserInterface';
@Controller('user')
export class UserController {
  constructor(private readonly userService: UserService) {}
  @Get()
  findAll() {
    return this.userService.findAll() 
  }
  @Post('/add-user')
  addUser(@Body() option:UserInterface) {
    return this.userService.addUser(option)
  }
}